from ctypes import *
from platform import *

cdll_names = {
            'Darwin' : 'libc.dylib',
            'Linux'  : 'libc.so.6',
            'Windows': 'msvcrt.dll'
        }

clib = cdll.LoadLibrary(cdll_names[system()])
p=c_char_p("Hello %d %f,中午".encode("gbk"))
clib.printf(p,c_int(15),c_double(2.3))